package org.example.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CommentVO {
    /**
     * 评论id
     */
    private Integer id;

    /**
     * 评论时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp createTime;
    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论人用户名
     */
    private String username;

    /**
     * 评论人头像链接
     */
    private String avatarUrl;

}
